package com.lehecai.core.lottery.fetcher.lotterydraw.impl;

import com.lehecai.core.lottery.LotteryType;
import com.lehecai.core.lottery.fetcher.FetcherType;
import com.lehecai.core.lottery.fetcher.lotterydraw.LotteryDraw;
import com.lehecai.core.lottery.fetcher.lotterydraw.impl.worker.*;
import com.lehecai.core.util.CoreFetcherUtils;

/**
 * 江苏快3开奖结果抓取
 * @author He Wang
 *
 */
public class LotteryDrawFetcher564 extends BaseLotteryDrawFetcher{

    public LotteryDraw fetchAiCaiPiao(String phase) {
        AbstractLotteryDrawFetchWorker fetchWorker = new LotteryDrawFetchWorkerAiCaiPiao(LotteryType.JSK3);
        LotteryDraw resultListObj = fetchWorker.fetchResult(phase);
        LotteryDraw resultDetailObj = fetchWorker.fetchResultDetail(phase);
        return CoreFetcherUtils.getComparedResult(resultListObj, resultDetailObj);
    }

    public LotteryDraw fetchQihoo(String phase) {
        AbstractLotteryDrawFetchWorker fetchWorker = new LotteryDrawFetch564WorkerQihoo(LotteryType.JSK3);
        return fetchWorker.fetchResultDetail(phase);
    }
	
	@Override
	protected FetcherType getDefaultFetcherType() {
		return FetcherType.T_QIHOO;
	}

}
